#include "stm32f10x.h"     
#include "delay.h"
#include "mybuzeer.h"
#include "light_senor.h"



int main()
{
LightSensor_Init();
Buzzer_Init();
	
uint8_t state;
while(1){
		state = LightSensor_GetState();
		if(state==0){ // 强光
			Buzzer_On();
		}else if(state==1){ // 弱光
			Buzzer_Off();
		}
	}	
}
















